// 01 导入request
import request from "../utils/request";
// 03 获取员工接口
export const GetStaff = params=>request.get("/api/staff",{params})
// 获取角色的接口
export const GetRole = params=>request.get("/api/user_group",{params})
// 添加员工
export const AddStaff = data=>request.post("/api/staff",data);
// 修改员工
export const UpdateStaff = data=>request.put("/api/staff",data);
// 删除员工
export const DelStaff = id=>request.delete("/api/staff/"+id);

export const CountStaff = ()=>request.get("/api/countStaff");
export const CountAll = ()=>request.get("/api/countAll");
